<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>数据字典管理</title>
<%@include file="/jsp/include/common.jsp"%>
</head>
<body class="easyui-layout">
	<%@include file="/jsp/include/commonLayout.jsp"%>
	<div data-options="region:'center',title:'内容'">
		<div style="margin: 20px 20px;">
		<form action="<%=request.getContextPath() %>/UpLoadController/upData.do" method="post"            enctype="multipart/form-data">
<input type="file" name="file" size="50" />
<br />
<input type="submit" value="Upload File" />
</form>
		</div>
	</div>
</body>
<script type="text/javascript">
function fileUpPhoto() {
    $('#fileupload_2_1').fileupload({
        url: basePath + "admin/engineerInfo/upPhoto",//上传地址
        dataType: 'json',
        add: function (e, data) {
            $("#uploadPicture_2_1").unbind("click.uploadPictureSave")
                    .bind("click.uploadPictureSave",function () {
                        $("#uploadPicture_2_1").button('loading');

                        data.submit();
                    });
        },
        done: function (e,data) {//设置文件上传完毕事件的回调函数
            if (data.result.result == '0') {
                toast.error(data.result.resultMsg);
            } else {
                var image1 = document.getElementById("updateImage_2_1");
                image1.src = data.result.resultMsg;
            }
        }
    });
}
</script>
</html>